package com.jobpass.common.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jobpass.common.insterface.ScoreMapper;
import com.jobpass.common.model.Score;
import com.jobpass.common.service.ScoreService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author JobPass
 * @since 2020-07-17
 */
@Service
public class ScoreServiceImpl extends ServiceImpl<ScoreMapper, Score> implements ScoreService {

    @Resource
    private ScoreMapper scoreMapper;
    @Override
    public List<Score> FindAllScore() {
        return scoreMapper.selectList(null);
    }

    @Override
    public Score FindScoreById(Long id) {
        return scoreMapper.selectById(id);
    }

    @Override
    public int DeleteScoreById(Long id) {
        return scoreMapper.deleteById(id);
    }

    @Override
    public int UpdateScoreById(Score score) {
        return scoreMapper.updateById(score);
    }

    @Override
    public int SavaScore(Score score) {
        return scoreMapper.insert(score);
    }
}
